import 'platform_web.dart' if (dart.library.io) 'platform_io.dart';

class UtilPlatform {
  static bool get isWeb => UtilPlatformIOAndWeb.isWeb;

  static bool get isMacOS => UtilPlatformIOAndWeb.isMacOS;

  static bool get isWindows => UtilPlatformIOAndWeb.isWindows;

  static bool get isLinux => UtilPlatformIOAndWeb.isLinux;

  static bool get isAndroid => UtilPlatformIOAndWeb.isAndroid;

  static bool get isIOS => UtilPlatformIOAndWeb.isIOS;

  static bool get isFuchsia => UtilPlatformIOAndWeb.isFuchsia;

  static bool get isMobile => UtilPlatformIOAndWeb.isIOS || UtilPlatformIOAndWeb.isAndroid;

  static bool get isDesktop =>
      UtilPlatformIOAndWeb.isMacOS || UtilPlatformIOAndWeb.isWindows || UtilPlatformIOAndWeb.isLinux;
}
